const { JmxExecutor, JmxRuntime } = require("../../src/jmxExecution");

const jmeterHomePath = "D:\\Development\\jmeter\\apache-jmeter-5.6.3";
const jmxFilePath = "C:\\Users\\毛建杰\\Desktop\\automated-performance-data\\jmx\\01.test.jmx";
const jtlPath = "C:\\Users\\毛建杰\\Desktop\\automated-performance-data\\jtl";

(async function () {
    const jmxExecutor = new JmxExecutor(jmeterHomePath);
    const jmxRuntime = new JmxRuntime(jmxExecutor, jmxFilePath, 1, 20, jtlPath);
    await jmxRuntime.run();
    jmxRuntime.threadNumber = 2;
    await jmxRuntime.run();
    const testResults = jmxRuntime.testResults;
    console.log(testResults);
})()